package cn.fl.customer.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.cmm.base.framework.utils.StringUtils;
import cn.fl.customer.service.ICstCorpBscInfoService;
import cn.fl.customer.transform.CstCorpBscInfoVOTransform;
import cn.fl.customer.vo.CstCorpBscInfoVO;
import fl.customer.facade.customer.api.ICustomerApiService;
import fl.customer.facade.customer.dto.CstCorpBscInfoDTO;

@Service
public class CstCorpBscInfoServiceImpl implements ICstCorpBscInfoService {

	/**
	 * 日志
	 */
	@SuppressWarnings("unused")
	private static final Logger logger = LoggerFactory.getLogger(CstCorpBscInfoServiceImpl.class);
	
	/**
	 * 客户API服务
	 */
	@Autowired
	private ICustomerApiService customerApiService;

	@Override
	public CstCorpBscInfoVO selectById(Long id) {
		if(StringUtils.isEmpty(id))return null;
		CstCorpBscInfoDTO dto = this.customerApiService.selectCstCorpBscInfoDTOById(id);
		return CstCorpBscInfoVOTransform.toVO(dto);
	}

	/*@Override
	public Long add(CstCorpBscInfoVO entity) {
		if(null == entity)return null;
		return this.cstCorpBscInfoApiService.add(CstCorpBscInfoVOTransform.toDTO(entity));
	}*/

	/*@Override
	public boolean removeById(Long id) {
		if(StringUtils.isEmpty(id))return false;
		return this.cstCorpBscInfoApiService.removeById(id);
	}*/

	/*@Override
	public boolean modify(CstCorpBscInfoVO entity) {
		if(null == entity)return false;
		return this.cstCorpBscInfoApiService.modify(CstCorpBscInfoVOTransform.toDTO(entity));
	}*/

	/*@Override
	public Pager searchList(Pager page) {
		if(null == page)page = new Pager();
		return this.cstCorpBscInfoApiService.searchList(page);
	}*/

	/*@Override
	public Pager searchList(Pager page, CstCorpBscInfoVO entity) {
		if(null == entity) return page;
		if(null == page)page = new Pager();
		return this.cstCorpBscInfoApiService.searchList(page);
	}*/
}
